package com.baoai.dto;

import com.baoai.common.ArrayQuery;
import com.baoai.common.IdName;
import org.springframework.stereotype.Repository;

/**
 * 导师
 * Created by xiaren on 2017/4/10.
 */
@Repository("tutor")
public class TutorDto extends BaseDto {
// [tutorId=11, praisePercen=100.00, tutorName=小玲, address=深圳市, headImage=http://xy.baoai.com:80/attachment/kindeditor/2016/12/20161220091754215607.jpg, honor=保爱金牌情感咨询师, learnNumber=0, labelJson=["经营婚姻","婆媳关系","出轨解决"], labelIdJson=["24","25","26"], goodAtNameJson=["情绪管理","配偶挽回","个人成长"], goodAtIdJson=["4","5","6"], sex=0, className=tutor]

    private String className = "tutor";
    private String id;
    @IdName
    private String tutorId;     // 导师ID
    private String tutorName;   //导师名字
    private String headImage;   //图片
    private String address; //地址
    private Integer praisePercen;   //好评度
    private String honor;   //导师头衔
    private Integer learnNumber;    //学员
    private String goodAtIdJson;    // 擅长领域id json
    @ArrayQuery(lengthName = "goodAt_Count")
    private String goodAtNameJson;  // 擅长领域名称 json
    private String sex;   // 性别 0所有，1男，2女
    private Long createDate;    // 当前时间的毫秒数
    private Long updateDate;    //修改时间
    private String labelJson;  //标签 eg、["爱情类别"]
    private String labelIdJson; // 标签id     eg、[1,2]
    private Integer courseNumber;   //课程数量
    private String state;  // 状态1有效0无效

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getCourseNumber() {
        return courseNumber;
    }

    public void setCourseNumber(Integer courseNumber) {
        this.courseNumber = courseNumber;
    }

    @Override
    public String toString() {
        return "TutorDto{" +
                "className='" + className + '\'' +
                ", id='" + id + '\'' +
                ", tutorId='" + tutorId + '\'' +
                ", tutorName='" + tutorName + '\'' +
                ", headImage='" + headImage + '\'' +
                ", address='" + address + '\'' +
                ", praisePercen=" + praisePercen +
                ", honor='" + honor + '\'' +
                ", learnNumber=" + learnNumber +
                ", goodAtIdJson='" + goodAtIdJson + '\'' +
                ", goodAtNameJson='" + goodAtNameJson + '\'' +
                ", sex='" + sex + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", labelJson='" + labelJson + '\'' +
                ", labelIdJson='" + labelIdJson + '\'' +
                ", courseNumber=" + courseNumber +
                '}';
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getTutorId() {
        return tutorId;
    }

    public void setTutorId(String tutorId) {
        this.tutorId = tutorId;
    }

    public String getTutorName() {
        return tutorName;
    }

    public void setTutorName(String tutorName) {
        this.tutorName = tutorName;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPraisePercen() {
        return praisePercen;
    }

    public void setPraisePercen(Integer praisePercen) {
        this.praisePercen = praisePercen;
    }

    public String getHonor() {
        return honor;
    }

    public void setHonor(String honor) {
        this.honor = honor;
    }

    public Integer getLearnNumber() {
        return learnNumber;
    }

    public void setLearnNumber(Integer learnNumber) {
        this.learnNumber = learnNumber;
    }

    public String getGoodAtIdJson() {
        return goodAtIdJson;
    }

    public void setGoodAtIdJson(String goodAtIdJson) {
        this.goodAtIdJson = goodAtIdJson;
    }

    public String getGoodAtNameJson() {
        return goodAtNameJson;
    }

    public void setGoodAtNameJson(String goodAtNameJson) {
        this.goodAtNameJson = goodAtNameJson;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public Long getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    @Override
    public Long getUpdateDate() {
        return updateDate;
    }

    @Override
    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }

    public String getLabelJson() {
        return labelJson;
    }

    public void setLabelJson(String labelJson) {
        this.labelJson = labelJson;
    }

    public String getLabelIdJson() {
        return labelIdJson;
    }

    public void setLabelIdJson(String labelIdJson) {
        this.labelIdJson = labelIdJson;
    }
}
